projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c706980
)
entry: Guard clipping with a save/restore
author
Benjamin Otte
<otte@redhat.com>
Mon, 18 Apr 2011 23:10:23 +0000
(
01:10
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 19 Apr 2011 20:18:18 +0000
(22:18 +0200)
Just t be sure, so people don't get bugs later when they refactor code.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index bb85eadfc6f7583c9f2faf9e1eaf7a7868c1017d..beb91c615e6be937e3797d6d2db7897d2cbe70df 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-5753,6
+5753,8
@@
gtk_entry_draw_text (GtkEntry *entry,
&progress_x, &progress_y,
&progress_width, &progress_height);
+ cairo_save (cr);
+
clip_width = gdk_window_get_width (priv->text_area);
clip_height = gdk_window_get_height (priv->text_area);
cairo_rectangle (cr, 0, 0, clip_width, clip_height);
@@
-5799,6
+5801,8
@@
gtk_entry_draw_text (GtkEntry *entry,
cairo_restore (cr);
}
+
+ cairo_restore (cr);
}
static void